package com.hibase.upms.entity.organization.vo;

import com.hibase.core.web.annotation.HibaseValid;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;

/**
 * @author ChrisCui
 * @date 2019-4-18
 */
@Data
@ApiModel("新增组织vo")
@HibaseValid
public class MdsOrgInsertVO {

    @NotBlank(message = "请填写组织编号")
    @ApiModelProperty(value = "组织编号", example = "OrgCode001")
    private String code;

    @NotBlank(message = "请填写组织名称")
    @ApiModelProperty(value = "组织名称", example = "海晨物流集团")
    private String name;

    @NotBlank(message = "请选择业务类型")
    @ApiModelProperty(value = "业务类型", example = "组织机构")
    private String bizType;

    @ApiModelProperty(value = "上级组织", example = "1111")
    private String parentId;

//    @NotBlank(message = "请选择上级组织名称")
    @ApiModelProperty(value = "上级组织名称", example = "海晨物流集团")
    private String parentName;

    @ApiModelProperty(value = "备注", example = "test备注")
    private String remarks;
}
